package com.ws.service.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ws.bean.Staff;
import com.ws.dao.StaffDao;
import com.ws.service.StaffService;
import com.ws.util.Page;
@Service
public class StaffServiceImp implements StaffService {
	@Autowired
	StaffDao dao;
	@Override
	public List<Staff> getAllStaff(Staff staff, Page page) {
		
		return dao.getAllStaff(staff , page);
	}
	@Override
	public int getCount(Staff staff) {
		return dao.getCount(staff);
	}
	@Override
	public int editStaff(Staff staff) {
		return dao.editStaff(staff);
	}
	@Override
	public int delStaff(Integer id) {
		return dao.delStaff(id);
	}
	@Override
	public int addStaff(Staff staff) {
		return dao.addStaff(staff);
	}
	@Override
	public int addImg(Staff staff) {
		return dao.addImg(staff);
	}

}
